package com.appkubes.mall.core.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 渠道管理
 * @author Rongjie
 */
@Data
@TableName("mall_utm_source")
@KeySequence(value = "mall_utm_source_SEQ")
@ApiModel(value = "MallUtmSource对象")
public class MallUtmSource implements Serializable{

       private String appKey;

       @TableId(value = "utm_key", type = IdType.UUID)
       @ApiModelProperty(value = "渠道KEY")
       private String utmKey;

       @ApiModelProperty(value = "渠道标识")
       private String utmCode;

       @ApiModelProperty(value = "渠道名称")
       private String utmName;

       @ApiModelProperty(value = "渠道电话")
       private String contactPhone;

       @ApiModelProperty(value = "是否开启扣量", example = "1")
       private Integer isDeduction;

       @ApiModelProperty(value = "扣量比例", example = "1")
       private Integer deductionRate;

       @ApiModelProperty(value = "注册数量", example = "1")
       private Integer cpa;

       @ApiModelProperty(value = "uv数量", example = "1")
       private Integer uv;

       @ApiModelProperty(value = "uv单价")
       private BigDecimal uvPrice;

       private Integer cps;

       @ApiModelProperty(value = "渠道类型；USER/人，ORGANIZATION/机构")
       private String sourceType;

       @ApiModelProperty(value = "是否开启", example = "1")
       private Integer state;

       @ApiModelProperty(value = "访问Token，用于微信")
       private String accessToken;

       private Integer createTime;

       private Integer updateTime;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
